package com.ymttest.common.enums;

/**
 * 订单状态OrderState枚举
 */
public enum AppViewOrderStateEnum {
	/**
	 * 等待付款
	 */
	PendingPay(1),
	/**
	 * 待收货
	 */
	PendingReceive(2),
	/**
	 * 全部
	 */
	All(3);

	private int intValue;
	private static java.util.HashMap<Integer, AppViewOrderStateEnum> mappings;

	private synchronized static java.util.HashMap<Integer, AppViewOrderStateEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, AppViewOrderStateEnum>();
		}
		return mappings;
	}

	private AppViewOrderStateEnum(int value) {
		intValue = value;
		AppViewOrderStateEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static AppViewOrderStateEnum forValue(int value) {
		return getMappings().get(value);
	}
}